from selenium import webdriver as webdriver
import yaml


#初始化web driver
#形参chromeDriverPath：指定chromeDriver程序的文件路径，例如:r"E:\cesi_install\python_install\Chromedriver\chromedriver.exe"
def init_webDriver(chromeDriverPath=None):
    driver=None
    if chromeDriverPath is None:
        driver = webdriver.Chrome()
    else:
        driver=webdriver.Chrome(executable_path=chromeDriverPath)
    driver.maximize_window()
    driver.implicitly_wait(30)
    return driver

